package com.du.spring5.bean;

import org.springframework.stereotype.Component;

/**
 * @author : DuJiabao
 * @Project : spring
 * @Time : 2021/4/9 23:54
 * @Desc :
 */
@Component
public class Phone {
  private String name;

  public Phone() {
  }

  public Phone(String name) {
    this.name = name;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @Override
  public String toString() {
    return "Phone{" +
            "name='" + name + '\'' +
            '}';
  }
}
